package STUDENT.TranMinhVu.OOPS.ExerciseLV2.Square;

import java.util.Scanner;

public class Views {
	public static void main(String[] args) {
		Square obj = new Square();
		Controllers objcontrollers = new Controllers();
		System.out.println("Moi nhap chieu dai canh hinh vuong");
		Scanner sc = new Scanner(System.in);
		obj.setSide(sc.nextDouble());
		if (obj.getSide()<0){
			System.out.println("Canh hinh vuong phai lon hon 0");
		}
		else 
			{System.out.println("Chu vi hinh vuong la: " + objcontrollers.CalculatePerimeter(obj));
			System.out.println("Dien tich hinh vuong la: " + objcontrollers.CalculateArea(obj));}
	}
}